<?php
include "./library.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<link href="posting.css" type="text/css" rel="stylesheet"><title>posting</title>

</head>
<form name="postingForm" action="./posting_upload.php" method="post">
<div style="text-align: center;"><br>
<br>
<br>
<br>
<div id="header" style="text-align: left;">&nbsp;
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;
<h1>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;Post your journey!</h1>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
From : <input name="from" type="text"><br>
To : &nbsp; &nbsp; <input name="to" type="text"><br>
Date :
<select name="tour_Month"><option> - Month - </option><option value="01">January</option><option value="02">Febuary</option><option value="03">March</option><option value="04">April</option><option value="05">May</option><option value="06">June</option><option value="07">July</option><option value="08">August</option><option value="09">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option></select>
<select name="tour_Day"><option> - Day - </option><option value="01">1</option><option value="02">2</option><option value="03">3</option><option value="04">4</option><option value="05">5</option><option value="06">6</option><option value="07">7</option><option value="08">8</option><option value="09">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select>
<select name="tour_Year"><option> - Year - </option><option value="2011">2011</option><option value="2012">2012</option><option value="2013">2013</option><option value="2014">2014</option><option value="2015">2015</option><option value="2016">2016</option><option value="2017">2017</option><option value="2018">2018</option></select>
<br>
Time :
<select name="tour_Time"><option> - Time - </option><option value=" 01:00">1:00</option><option value=" 02:00">2:00</option><option value=" 03:00">3:00</option><option value=" 04:00">4:00</option><option value=" 05:00">5:00</option><option value=" 06:00">6:00</option><option value=" 07:00">7:00</option><option value=" 08:00">8:00</option><option value=" 09:00">9:00</option><option value=" 10:00">10:00</option><option value=" 11:00">11:00</option><option value=" 12:00">12:00</option><option value=" 13:00">13:00</option><option value=" 14:00">14:00</option><option value=" 15:00">15:00</option><option value=" 16:00">16:00</option><option value=" 17:00">17:00</option><option value=" 18:00">18:00</option><option value=" 19:00">19:00</option><option value=" 20:00">20:00</option><option value=" 21:00">21:00</option><option value=" 22:00">22:00</option><option value=" 23:00">23:00</option><option value=" 00:00">24:00</option></select><td><input type="button" value="submit" onClick="posting();"></td>	
</div>

</form>
<script>
function posting(){
	
	var pf = document.postingForm;
	if(pf.from.value ==""){
		alert("Please, Enter start point.");
		return false;
	}
	if(pf.to.value ==""){
		alert("Please, Enter end point.");
		return false;
	}
	if(pf.tour_Month.value ==" - Month - "){
		alert("Please, Select month.");
		return false;
	}
	if(pf.tour_Day.value ==" - Day - "){
		alert("Please, Select day.");
		return false;
	}
	if(pf.tour_Year.value ==" - Year - "){
		alert("Please, Select year.");
		return false;
	}
	if(pf.tour_Time.value ==" - Time - "){
		alert("Please, Select time.");
		return false;
	}
	pf.submit();
}
</script>